package socket.service;

import org.ignite.entity.Person;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient(value = "nacos-ignite")
public interface PersonService {
    @GetMapping("/person/getByName/{firstName}")
    public List<Person> getByName(@PathVariable("firstName") String firstName) ;
}
